import request from "@/utils/request";

// 复盘列表
export function reviewList(data) {
  return request({
    url: "/system/review/list",
    method: "get",
    params: data,
  });
}

// 复盘撤回
export function withdrawApi(data) {
  return request({
    url: "/system/review/delproject",
    method: "post",
    data
  })
}

// 复盘详情
export function reviewInfo(id) {
  return request({
    url: "/system/review/lists/" + id,
    method: "get",
  });
}

// 复盘参与人
export function reviewPerson(data) {
  return request({
    url: "/system/review/selectName",
    method: "get",
    params: data,
  });
}

// 复盘操作
export function reviewSubmit(data) {
  return request({
    url: "/system/review/update",
    method: "put",
    data
  })
}

// 复盘添加
export function addReview(data) {
  return request({
    url: "/system/review/insert",
    method: "post",
    data
  })
}


// 复盘意见发布
export function opinionRelease(data) {
  return request({
    url: "/system/review/addcomments",
    method: "post",
    data
  })
}


//复盘意见查询
export function opinionInquiry(data){
  return request({
    url:'/system/review/selectcomments',
    method:'get',
    params:data
  })
}

//删除复盘
export function deleteReviewData(data){
  return request({
    url:'/system/review/delete/'+data,
    method:'delete'
  });
}
